/**
 * CC2003
 * 
 * For the course CC2003 - Algorithms and Data Structures of UVG (Universidad del Valle de Guatemala, http://uvg.edu.gt)
 * 
 * 
 * 
 * SVN Repository of my course projects: http://cc2003.svn.sourceforge.net/viewvc/cc2003/
 * 
 * 
 * Copyright (C) 2009 Carlos Lopez Camey
 * visit me at http://kmels.net or write me at c.lopez@kmels.net
 * 
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/> or write to the Free Software Foundation, Inc.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

package tests;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.Socket;
import java.net.UnknownHostException;

import javax.xml.bind.JAXBException;

import main.MoculatorServer;
import main.PuertoNoEscuchableException;

import junit.framework.TestCase;

/**
 * @author kmels
 *
 */
public class MoculatorServerTest extends TestCase {
	String hostName = "localhost";
    int port = 3232;
    String locacionDelArchivo = "src/tests/ejemploAlumnos1.xml";
    Socket moculatorServer = null;
    MoculatorServer moculator;
    FileInputStream archivoGenerado;
    
	/* (non-Javadoc)
	 * @see junit.framework.TestCase#setUp()
	 */
	protected void setUp() throws Exception {
		this.moculator = new MoculatorServer();
		this.moculator.escuchar(this.port);
	}

	/**
	 * Test method for {@link main.MoculatorServer#crearSistema(java.lang.String, esquemas.ColeccionCampos)}.
	 */
	public void testCrearSistema() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link main.MoculatorServer#escuchar(int)}.
	 * @throws IOException 
	 * @throws JAXBException 
	 * @throws ClassNotFoundException 
	 * @throws PuertoNoEscuchableException 
	 */
	public void testEscuchar() throws IOException, PuertoNoEscuchableException, ClassNotFoundException, JAXBException {
		
	}

	/**
	 * Test method for {@link main.MoculatorServer#ingresarRegistroEn(java.lang.String, esquemas.DefinicionCampos, java.util.List)}.
	 */
	public void testIngresarRegistroEnStringDefinicionCamposListOfRegistro() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link main.MoculatorServer#modificarRegistro(java.lang.String, esquemas.DefinicionCampos, java.util.List)}.
	 */
	public void testModificarRegistroStringDefinicionCamposListOfRegistro() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link main.MoculatorServer#procesarRequest(esquemas.Instrucciones)}.
	 */
	public void testProcesarRequest() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link main.MoculatorServer#removerRegistro(java.lang.String, java.lang.String)}.
	 */
	public void testRemoverRegistro() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link main.MoculatorServer#getRequest(java.io.FileInputStream)}.
	 * @throws IOException 
	 */
	public void testGetRequest() throws IOException {
		//moculator.getRequest(this.archivoGenerado);
	}

	/**
	 * Test method for {@link main.MoculatorServer#ingresarRegistroEn(java.lang.String, esquemas.DefinicionCampos, esquemas.Registro)}.
	 */
	public void testIngresarRegistroEnStringDefinicionCamposRegistro() {
		fail("Not yet implemented");
	}

	/**
	 * Test method for {@link main.MoculatorServer#modificarRegistro(java.lang.String, esquemas.DefinicionCampos, esquemas.Registro)}.
	 */
	public void testModificarRegistroStringDefinicionCamposRegistro() {
		fail("Not yet implemented");
	}

}
